<%-- 
    Document   : admin
    Created on : May 16, 2012, 6:40:46 AM
    Author     : 0912153
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Trang Admin</title>
    </head>
    <body>
        <%
        if(session.getAttribute("username") == null)
        {
                //Check acc
                String username = request.getParameter("username");
                String password = request.getParameter("password");
                if(username.equals("Admin") && password.equals("123"))
                {
                    session.setAttribute("username", username);
                    response.sendRedirect("admin.jsp");
                }
                else
                {
                    response.sendRedirect("login.jsp");
                }
                ///////////////////////////////////
        }
        %>
        
    </body>
</html>
